-- By ScatmanJosh --

-- Functions --
usermessage.Hook( "PrintAll", function( data )
	print( data:ReadString() )
end )

usermessage.Hook( "PrintPlayer", function( data )
	print( data:ReadString() )
end )

usermessage.Hook( "PrintAdmin", function( data )
	print( data:ReadString() )
end )

usermessage.Hook( "ChatAll", function( data )
	local vec = data:ReadVector()
	chat.AddText( Color( vec.x, vec.y, vec.z), data:ReadString() )
end )

usermessage.Hook( "ChatPlayer", function( data )
	local vec = data:ReadVector()
	chat.AddText( Color( vec.x, vec.y, vec.z), data:ReadString() )
end )

usermessage.Hook( "ChatAdmin", function( data )
	local vec = data:ReadVector()
	chat.AddText( Color( vec.x, vec.y, vec.z), data:ReadString() )
end )